<!DOCTYPE html>
<html>

<head>
  <title></title>
  <script type="module">
  	import Player from "../src/Player.js";

  	var player = new Player({
  		name:'jeff',
  		age:28,
  		location:'point guard'
  	});
  	
  	player.addEventListener('shoot', function(event) {
  		console.log(event.message);
		});

		player.shoot();

		setInterval(function() {
			player.dispatchEvent({
      	type: 'shoot',
      	message: `${parseInt(Math.random() * 3)} points!`,
    	});
		},3000);

  </script>
</head>

<body>
</body>

</html>